<%-- 
    Document   : actualizahistoria
    Created on : 28/08/2014, 01:42:01 AM
    Author     : leonhart
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="cls" class="metodo.metodospaciente" scope="page"></jsp:useBean>

<%
    HttpSession sesionX=request.getSession();
    String id = (String)sesionX.getAttribute("id");
    int ids=Integer.parseInt(id);
    Double alt=Double.parseDouble(request.getParameter("altura"));
    Integer pes=Integer.parseInt(request.getParameter("peso"));
    cls.update_historia(ids, alt, pes);
    response.sendRedirect("paciente.jsp");
    
%>